#pragma once
#include "afxcmn.h"
#include "afxwin.h"
#include "DDThread.h"
#include "DDReportDataBase.h"

// DlgPrintReport dialog

class DlgPrintReport : public CDialog, public DDThread,public DDReportDataBase
{
	DECLARE_DYNAMIC(DlgPrintReport)

public:
	DlgPrintReport(CWnd* pParent = NULL);   // standard constructor
	virtual ~DlgPrintReport();

// Dialog Data
	enum { IDD = IDD_DIALOG_PRINTREPORT };

public:
	static void PrintImage();

private:
	TCHAR m_szFileDir[MAX_PATH];

public:
	virtual int DDThdDispatch(HANDLE hExitEvent = NULL);
	int LoadFileInfoToDataBase(HANDLE hExitEvent);
	int PrintReport(HANDLE hExitEvent,char *pReportName);

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedImagefiledirselect();
	afx_msg void OnBnClickedButtonPrint();
	CProgressCtrl m_progressPrintReport;
	CComboBox m_ComboxReportMode;
	afx_msg void OnDestroy();
};
